<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FilteredList.aspx.cs" Inherits="FilteredList"   MaintainScrollPositionOnPostback="True" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link href="../Styles/acc.css" rel="stylesheet" type="text/css" />
    <link href="css/redmond/jquery-ui-1.7.2.custom.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"></script>
    <script type="text/javascript" src="js/ServiceOrderPull.js"></script>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .other
        {
            margin-right: 4px;
        }
        .currRow
        {
            background-color: Gray;
            cursor: pointer;
        }
/* So the overflow scrolls */
.container {overflow:auto;}

/* Keep the header cells positioned as we scroll */
.container table th {position:relative;}

/* For alignment of the scroll bar */
.container table tbody {overflow-x:hidden;} 
    </style>
    <script type="text/javascript">
        $(function () {
            //debugger
            $("#tbl").width($("#GridView1").width());
            // $("#Gridview1").width($(window).width() - 20).height($(window).height() - 70);

            $("tr").filter(function () {
                return $('td', this).length && !$('table', this).length
            }).click(function () {
                $(this).toggleClass('BgOrange');
            });
            
            $("image2").css("display","");
//            .click(function () {
//                .css("display","");
//            });
        });

    </script>
</head>
<body style="font: normal 8pt 'Segoe UI', Arial, San-Serif;
    margin: 0px 1px 0px 0px" bgcolor="#50D17C">
    <form id="form1" runat="server">
    <center>
        <table id="tbl" width="100%" style="background-color: #50D17C">
            <tr>
                <td width="24px" align="left">
                    <asp:Image ID="Image1" runat="server" ImageUrl="~/images/Excel_icon.gif" onclick="CreateExcelSheet()"
                        Style="cursor: pointer;" ToolTip="Export Service Orders to an Excel Spreadsheet" />
                </td>
 <%--               <td width="100px">
                    <img id="image2" alt="" src="../images/LoadingProgressBar.gif" style="display:none" />
                </td>--%>
                <td width="*" align="left">
                    <asp:Label ID="Label1" runat="server" BackColor="#50D17C" Font-Size="Larger" Font-Bold="True"
                        ForeColor="White" Style="padding: 4px" Visible="true" EnableViewState="true"
                        Text="!" />
                   </td>
            </tr>
        </table>
    </center>
    <asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None"
        EnableViewState="False" AutoGenerateColumns="False" DataKeyNames="TRAC_ID" Width="100%"
        AllowSorting="true" OnRowDataBound="GridView1_RowDatabound" Caption='' OnSorting="GridView1_Sorting"
        Font-Names="Avenir">
        <AlternatingRowStyle BackColor="White" />
        <EditRowStyle BackColor="#24BF61" />
        <FooterStyle BackColor="#50D17C" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#50D17C" Font-Size="9pt" Font-Bold="True" ForeColor="Navy"  CssClass="gvFixedHeader"
            VerticalAlign="Bottom" HorizontalAlign="Right"  />
        <PagerStyle BackColor="#24BF61" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#E5FAC9" HorizontalAlign="Right" />
        <SelectedRowStyle BackColor="#D1F1DD" Font-Bold="True" ForeColor="#333333" />        
        <Columns>
            <asp:BoundField DataField="Portfolio_NM" HeaderText="Portfolio Name" SortExpression="Portfolio_NM"
                HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" HeaderStyle-Wrap="false"
                ItemStyle-Wrap="false" />
            <asp:BoundField DataField="Property_NM" HeaderText="Property Name" SortExpression="Property_NM"
                HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" HeaderStyle-Wrap="false"
                ItemStyle-Wrap="false" />
            <asp:BoundField DataField="Property_NM" HeaderText="#" ReadOnly="True" SortExpression="PropertY_NM"
                HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="TRAC_ID" HeaderText="Property Name" SortExpression=""
                HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" HeaderStyle-Wrap="false"
                ItemStyle-Wrap="false" Visible="False" />
            <asp:BoundField DataField="ADDRESSES" HeaderText="Addresses" SortExpression="ADDRESSES"
                DataFormatString="{0:N0}" />
            <asp:BoundField DataField="GREENS" HeaderText="Greens" SortExpression="GREENS" DataFormatString="{0:N0}"
                ItemStyle-Width="35px" />
            <asp:BoundField DataField="LIT" HeaderText="Lit" SortExpression="LIT" DataFormatString="{0:N1}%"
                HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="INSERVICE" HeaderText="In Service" DataFormatString="{0:N1}%"
                SortExpression="INSERVICE" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="Saturation" HeaderText="Saturation" DataFormatString="{0:N1}%"
                SortExpression="Saturation" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="SUBSCRIBERS" HeaderText="Subscribers TOTAL" SortExpression="SUBSCRIBERS"
                DataFormatString="{0:N0}" ItemStyle-Width="50px" />
            <asp:BoundField DataField="IPTV" HeaderText="IPTV" SortExpression="IPTV" DataFormatString="{0:N0}" />
            <asp:BoundField DataField="HSIA" HeaderText="HSIA" SortExpression="HSIA" DataFormatString="{0:N0}" />
            <asp:BoundField DataField="VOIP" HeaderText="VOIP" SortExpression="VOIP" DataFormatString="{0:N0}" />
            <asp:BoundField DataField="TOTAL_Revenue" HeaderText="Revenues&mdash;TOTAL" SortExpression="TOTAL_Revenue"
                DataFormatString="{0:C0}" />
            <asp:BoundField DataField="IPTV_Revenue" HeaderText="IPTV" SortExpression="IPTV_Revenue"
                DataFormatString="{0:C0}" />
            <asp:BoundField DataField="HSIA_Revenue" HeaderText="HSIA" SortExpression="HSIA_Revenue"
                DataFormatString="{0:C0}" />
            <asp:BoundField DataField="VOIP_Revenue" HeaderText="VOIP" SortExpression="VOIP_Revenue"
                DataFormatString="{0:C0}" />
            <asp:BoundField DataField="OTHER_UVERSE_REVENUE" HeaderText="OTHER" SortExpression="OTHER_UVERSE_REVENUE"
                DataFormatString="{0:C0}" />
            <asp:BoundField DataField="IPTVPercentage" HeaderText="Percent&mdash;IPTV" SortExpression="IPTVPercentage"
                DataFormatString="{0:N1}%" />
            <asp:BoundField DataField="HSIAPercentage" HeaderText="HSIA" SortExpression="HSIAPercentage"
                DataFormatString="{0:N1}%" />
            <asp:BoundField DataField="VOIPPercentage" HeaderText="VOIP" SortExpression="VOIPPercentage"
                DataFormatString="{0:N1}%" />
            <asp:BoundField DataField="OTHERPercentage" HeaderText="OTHER" SortExpression="OTHERPercentage"
                DataFormatString="{0:N1}%" ItemStyle-Width="34px" />
            <asp:BoundField DataField="TOTALPerSubscriber" HeaderText="Subscriber TOTAL" SortExpression="TOTALPerSubscriber"
                DataFormatString="{0:C0}" />
            <asp:BoundField DataField="IPTVPerSubscriber" HeaderText="IPTV" SortExpression="IPTVPerSubscriber"
                DataFormatString="{0:C0}" />
            <asp:BoundField DataField="HSIAPerSubscriber" HeaderText="HSIA" SortExpression="HSIAPerSubscriber"
                DataFormatString="{0:C0}" />
            <asp:BoundField DataField="VOIPPerSubscriber" HeaderText="VOIP" SortExpression="VOIPPerSubscriber"
                DataFormatString="{0:C0}" />
            <asp:BoundField DataField="OTHERPerSubscriber" HeaderText="OTHER" SortExpression="OTHERPerSubscriber"
                DataFormatString="{0:C0}" ItemStyle-Width="30px" />
            <asp:BoundField DataField="Acct_MGR" HeaderText="Account Manager"
                SortExpression="Acct_MGR" HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left"
                HeaderStyle-Wrap="false" ItemStyle-Wrap="false" />
            <asp:BoundField DataField="State_CD" HeaderText="State" SortExpression="State_CD"
                HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" />
            <asp:BoundField DataField="Area_MGR" HeaderText="Area Manager" SortExpression="Area_MGR"
                HeaderStyle-HorizontalAlign="Left" ItemStyle-HorizontalAlign="Left" HeaderStyle-Wrap="false"
                ItemStyle-Wrap="false" />
            <asp:BoundField DataField="MARKET" HeaderText="Market" SortExpression="MARKET" HeaderStyle-HorizontalAlign="Center"
                ItemStyle-HorizontalAlign="Right"/>
        </Columns>

    </asp:GridView>
    </form>
</body>
</html>
